package com.example.agent_springai.entity.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DrawChartParam {
    private String type = "line"; // 图表类型：line(折线图), pie(饼图), bar(柱状图)
    private Object data; // 必须是数组：[{time, value, group}, ...]
    private String theme = "default";
    private Map<String, Object> style; // 必须是对象：{lineWidth, backgroundColor, ...}
    private Integer width = 600;
    private Integer height = 400;
    private String title; // 必须非空字符串
}